package com.huopaolan.yohuoshop.Di.Modules;

import com.huopaolan.yohuoshop.Mvp.Contract.CommunityFragmentContract;
import com.huopaolan.yohuoshop.Mvp.Model.CommunityFragmentModel;

import javax.inject.Inject;

import dagger.Module;
import dagger.Provides;

@Module
public class StrollCommunityFragmentModules {
    private CommunityFragmentContract.CommunityWriteIView iView;

    @Inject
    public StrollCommunityFragmentModules(CommunityFragmentContract.CommunityWriteIView iView) {
        this.iView = iView;
    }

    @Provides
    public CommunityFragmentContract.CommunityWriteIView providerIView() {
        return iView;
    }

    @Provides
    public CommunityFragmentContract.CommunityWriteIModel providerIModel() {
        return new CommunityFragmentModel();
    }
}
